package com.itchen.headline.service;

import com.itchen.headline.pojo.NewsUser;

public interface NewsUserService {
    /**
     * 查询登录时用户信息
     * @param username
     * @return
     */
    NewsUser findByUsername(String username);

    /**
     * 根据token 和 id查询用户信息
     * @param userId
     * @return
     */
    NewsUser findByUid(Integer userId);

    /**
     * 注册 逻辑
     * @param registUser
     * @return
     */
    Integer registUser(NewsUser registUser);
}
